// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
//router
import router from './router'
//axios
import axios from 'axios'
import VueAxios from 'vue-axios'
//element-ui
import ElementUI from 'element-ui'; //加入
import 'element-ui/lib/theme-chalk/index.css';//加入
//自定义工具模块
import utils from './utils/utils.js';
//权限控制的组件
import Power from '@/components/Power.vue'

Vue.prototype.utils = utils;
Vue.config.productionTip = false
Vue.use(VueAxios, axios)
Vue.use(ElementUI)//加入
Vue.component("Power", Power)//注册成全局组件

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
